home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / pro61.exe / MFCSAM.EXE / CALC / CALC.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  3.9 KB  |  172 lines

  1. // Filename: CALC.CPP                                       
  2. // "CALC" Generated by Visual Programmer
  3. // Author:   Blue Sky                                       
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Code in this file is initially generated by the Switch-It Module.
  8. // This file contains functions you can change
  9. // to provide whatever functionality you require.
  10. // 
  11. // 
  12. // 
  13. // For more information,
  14. // see the section "How code is generated" in the documentation.
  15. // 
  16. // ***********************************************************************
  17. // 
  18.  
  19. #include "AFXWIN.H"
  20. #include "CALC.H"
  21.  
  22. WMPDEBUG
  23.  
  24. #ifdef _DEBUG
  25. #undef THIS_FILE
  26. static char BASED_CODE THIS_FILE[] = __FILE__;
  27. #endif
  28.  
  29.  
  30. #include "CALC.WMC"
  31.     
  32.     
  33.     
  34.  
  35.  
  36. // *********************************************************************
  37. // Creates the application object.  Sets the ball in
  38. // motion for the entire application.
  39. // *********************************************************************
  40.  
  41. Cwm_Application  TheApp;
  42.  
  43.  
  44.  
  45. // *************************************************************
  46. // Member Functions for Class: Cwm_Application
  47. // Base Class                : Cwm_BaseApplication
  48. // Derived from MFC Class    : CWinApp
  49. // *************************************************************
  50.  
  51. // The User application class. In this class, you can override any
  52. // member functions in base classes you need to, and add your own
  53. // functionality.
  54.  
  55.  
  56.  
  57. BEGIN_MESSAGE_MAP( Cwm_Application, Cwm_BaseApplication )
  58.  
  59.     // YOU CAN ADD YOUR OWN CODE HERE
  60.  
  61.     //{{SIM_MSG_MAP(Cwm_Application)
  62.     // DO NOT EDIT what you see in this block of generated code.
  63.  
  64.     //}}SIM_MSG_MAP(Cwm_Application)
  65.  
  66. END_MESSAGE_MAP()
  67.  
  68.  
  69. // Initialization for the first instance of the application
  70. BOOL Cwm_Application::InitApplication()
  71. {
  72.     return Cwm_BaseApplication::InitApplication();
  73. }
  74.  
  75.  
  76. // Initialize this instance of the application
  77. BOOL Cwm_Application::InitInstance()
  78. {
  79.     return Cwm_BaseApplication::InitInstance();
  80. }
  81.  
  82.  
  83. // Exit for this instance of the application
  84. BOOL Cwm_Application::ExitInstance()
  85. {
  86.     return Cwm_BaseApplication::ExitInstance();
  87. }
  88.  
  89.  
  90. // *************************************************************
  91. //   C Startup function for main window 
  92. // *************************************************************
  93.  
  94. Cwm_MainWnd* BLDMainCreateWnd(CWnd *pAParent)
  95.     {
  96.     Cwm_MainWnd *pWnd;
  97.  
  98.     // Create the object
  99.     pWnd = new Cwm_MainWnd();
  100.     if (!pWnd)
  101.         return NULL;
  102.  
  103.     // Create the window
  104.     pWnd->SimInitWindow(pAParent);
  105.  
  106.     return pWnd;
  107.     }
  108.  
  109.  
  110.  
  111. // *************************************************************
  112. // Member Functions for Class: Cwm_MainWnd
  113. // Base Class                : Cwm_MainBaseWnd
  114. // Derived from MFC Class    : CWnd
  115. // *************************************************************
  116.  
  117. // The User main window class. In this class, you can override any
  118. // member functions in base classes you need to, and add your own
  119. // functionality.
  120.  
  121.  
  122. IMPLEMENT_DYNCREATE( Cwm_MainWnd, Cwm_MainBaseWnd )
  123.  
  124. BEGIN_MESSAGE_MAP( Cwm_MainWnd, Cwm_MainBaseWnd )
  125.  
  126.     //{{SIM_MSG_MAP(Cwm_MainWnd)
  127.     // DO NOT EDIT what you see in this block of generated code.
  128.     //}}SIM_MSG_MAP(Cwm_MainWnd)
  129.  
  130.     // YOU CAN ADD YOUR OWN CODE HERE
  131.  
  132. END_MESSAGE_MAP()
  133.  
  134.  
  135. Cwm_MainWnd::Cwm_MainWnd()
  136.     : Cwm_MainBaseWnd()
  137. {
  138. }
  139.  
  140.  
  141. Cwm_MainWnd::~Cwm_MainWnd()
  142. {
  143. }
  144.  
  145.  
  146. //{{SIM_MSG_BODY(Cwm_MainWnd)
  147. // Message Handler Functions for you to edit will come here.
  148.  
  149.  
  150.  
  151.  
  152.  
  153. //}}SIM_MSG_BODY(Cwm_MainWnd)
  154.  
  155.  
  156. // *************************************************************
  157. // Cwm_Wnd diagnostics
  158.  
  159. #ifdef _DEBUG
  160. void Cwm_MainWnd::AssertValid() const
  161. {
  162.     Cwm_MainBaseWnd::AssertValid();
  163. }
  164.  
  165. void Cwm_MainWnd::Dump(CDumpContext& dc) const
  166. {
  167.     Cwm_MainBaseWnd::Dump(dc);
  168. }
  169.  
  170. #endif //_DEBUG
  171.  
  172.